package com.innovations.framework.sms;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

@ApiOperation(value ="短信发送请求")
@Data
public class SmsRequest {

    @ApiModelProperty("平台id")
    String appid;

    @ApiModelProperty("平台密钥")
    String accesskey;

    @ApiModelProperty("时间戳")
    String timestamp;

    @ApiModelProperty("手机号")
    String mobiles;

    @ApiModelProperty("模板编号")
    String templetCode;

    @ApiModelProperty("验证码")
    String code;

    public SmsRequest(String appid,String accesskey,String mobiles,String templetCode,String code){
        this.appid = appid;
        this.accesskey = accesskey;
        this.timestamp = String.valueOf(System.currentTimeMillis());
        this.mobiles = mobiles;
        this.templetCode = templetCode;
        this.code = code;
    }
}
